package com.base.common.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "tb_rec_goods")
@ApiModel(value = "RecGoods-推荐产品对象", description = "推荐产品类")
public class RecGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一ID
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "推荐产品id", name = "Id", required = true, dataType = "Integer")
    private Integer id;

    /**
     * 推荐ID
     */
    @Id
    @Column(name = "rec_id")
    @ApiModelProperty(value = "推荐ID", name = "recId", required = true, dataType = "Integer")
    private Integer recId;

    /**
     * 推荐产品名称
     */
    @Column(name = "goods_name")
    @ApiModelProperty(value = "推荐产品名称", name = "goodsName", required = true, dataType = "String")
    private String goodsName;

    /**
     * 推荐产品图片
     */
    @Column(name = "pic")
    @ApiModelProperty(value = "推荐产品图片", name = "pic", required = true, dataType = "String")
    private String pic;

    /**
     * 推荐产品价格
     */
    @Column(name = "price")
    @ApiModelProperty(value = "推荐产品价格", name = "price", required = true, dataType = "Float")
    private String price;

    /**
     * 创建日期
     */
    @Column(name = "created")
    @ApiModelProperty(value = "创建日期", name = "created", dataType = "Date")
    private Date created;

    /**
     * 更新日期
     */
    @Column(name = "updated")
    @ApiModelProperty(value = "更新日期", name = "updated", dataType = "Date")
    private Date updated;


}
